{if $pager}
<nav>
    <ul class="pagination">
        {if $pager['urls']['first']}
        <li class="page-item">
            <a class="page-link" href="{$pager['urls']['first']['url']}">
                <span>{$pager['urls']['first']['text']}</span>
            </a>
        </li>
        {/if}
        {if $pager['urls']['prev']}
        <li class="page-item">
            <a class="page-link" href="{$pager['urls']['prev']['url']}">
                <span>{$pager['urls']['prev']['text']}</span>
            </a>
        </li>
        {/if}
        {loop $pager['urls']['pages'] $index $page}
        <li class="page-item {if $page['text'] == $pager['curpage']}disabled{/if}"><a class="page-link" href="{$page['url']}">{$page['text']}</a></li>
        {/loop}
        {if $pager['urls']['next']}
        <li class="page-item">
            <a class="page-link" href="{$pager['urls']['next']['url']}">
                <span>{$pager['urls']['next']['text']}</span>
            </a>
        </li>
        {/if}
        {if $pager['urls']['last']}
        <li class="page-item">
            <a class="page-link" href="{$pager['urls']['last']['url']}">
                <span>{$pager['urls']['last']['text']}</span>
            </a>
        </li>
        {/if}
        
        {if isset($pager['count'])}
        <li class="page-count">共 {$pager['count']} 条数据</li>
        {/if}
    </ul>
</nav>
{/if}